#ifndef SELECTCALLDATADIALOG_H
#define SELECTCALLDATADIALOG_H

#include <QtGui>
#include <QFileInfo>
#include <QContentFilter>

#include <QDocumentSelector>
#include <QContent>
#include <QDir>

// #include <iostream>
// #include <QStackedLayout>
// #include <qtopiaapplication.h>

#include "ui_selectcalldataform.h"

class SelectCallDataDialog : public QDialog, public Ui_SelectCallDataDialog {
	Q_OBJECT

	public:
		SelectCallDataDialog(QWidget *parent=0, Qt::WFlags f = 0 );
		void showList(QString defaultFile, QString extension, QString currentFile,
				QString randomFile);
		~SelectCallDataDialog();

	private:
		QDir dir;
		QString defaultItem;
	
	signals:
		void fileSelectedSignal(QString path);

	public slots:
		void on_selectPushButton_clicked();
		void on_defaultPushButton_clicked();
		void on_cancelPushButton_clicked();
		void insertItem(QString item);

		void closeListener();
};

#endif
